<template>
  <div>
    <!-- 轮播图 -->
    <el-carousel height="470px" width="100%">
      <el-carousel-item v-for="item in list" :key="item">
        <img style="width: 100%; height: 100%" :src="item.coverImage" />
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script setup>
import { reactive, toRefs } from "vue";
let state = reactive({
  list: [
    {
      coverImage: new URL("@/assets/img/banner@2x.png", import.meta.url),
    },
    {
      coverImage: new URL("@/assets/img/图片 WYF7SiE@2x.png", import.meta.url),
    },
  ],
});
let { list } = toRefs(state);
</script>

<style lang="scss" scoped></style>
